#include<stdio.h>
#include<stdlib.h>
int main() {
	struct node
	{
		int a;
		struct node* next;
	};
	typedef struct node data;
	data* ptr;
	data* head;
	data* newdate;
	head = (data*)malloc(sizeof(data));
	ptr = head;
	ptr->next = NULL;

	int n, m;
	scanf("%d", &n);
	int e = n;
	do {
		scanf("%d ", &ptr->a);
		newdate = (data*)malloc(sizeof(data));
		ptr->next = newdate;
		newdate->next = NULL;
		ptr = ptr->next;
		e--;
	} while (e > 0);


	scanf("%d", &m);
	struct operate
	{
		int b;
		char k;
		char d;
	};
	operate op[m];
	int f = 0;
	do {
		scanf("%d %c  %c ", &op[f].b, op[f].k, op[f].d);
		f++;
	} while (f < m);

	int p= 0;
	while (p== m-1);{
		ptr = head;
		if (op[p].b == 0) {
			if (op[p].k > n) break;
			if(op[p].k==0){}4+

		};
		if[op[p].b == 1] {
			if (op[p].k > n) break;
			if (op[p].k==0) break;

			}
		p++;
	}


	return 0;
}




